package com.smarthospital.common.Result;

/**
 * create by sym  2021/3/22 18:56.
 */

public enum  CodeMsg {
    SUCESS(0,"操作成功"),
    FAIL(500,"系统出错"),

    ERROR_PARAM(10201,"参数缺失"),
    ERROR_OP_FAST(10101,"您操作太快了,请稍后再试"),
    ERROR_LOGIN(10401,"未登录"),
    ERROR_OPT_SEND(10402,"短信验证码发送失败"),
    ERROR_OPT_MISS(10403,"短信验证参数缺失"),
    ERROR_NO_PAY_ORDERS(10501,"您有待支付的订单"),
    ERROR_NO_ORDER(10502,"订单不存在"),
    ERROR_NO_VEDIO(10503,"通话不存在"),
    ERROR_NO_LEFT_TIME(10504,"订单剩余时间不足"),
    ERROR_PARAM_POINT(10505,"piont参数错误"),
    ERROR_NO_permission(10506,"用户无权使用该订单"),
    ERROR_WX_HTTP_PREORDER(10507,"统一下单,微信服务调用失败"),
    ERROR_DICTIONARY(10508,"字典详情列表字典不一样"),
    ERROR_DATA(10509,"数据错误"),
    ERROR_ORDER_OVER(10510,"订单未支付或结束"),
    ERROR_RANGE_TIME_PARTERN(10511,"预约时间格式错误"),
    ERROR_WX_HTTP_CLOSEORDER(10512,"关闭订单,微信服务调用失败"),
    ERROR_ORDER_STATUS(10513,"订单状态错误"),
    ERROR_ORDER_REFUNDS(10514,"【申请退款】微信服务调用异常"),
    ERROR_NOT_DOCTOR(10515,"不是医生"),
    ERROR_NOT_HOSPITAL(10516,"该医院未对接"),
    ERROR_DOCTOR_NOT_EXSIST(10517,"医生不存在"),
    ERROR_NO_RIGHT(10518,"无权发起聊天"),
    ERROR_NO_STARTED(10519,"聊天未开始"),
    ERROR_RANGE_TIME(10520,"订单不在预约时间内"),
    ERROR_NOT_IM(10521,"订单不能发起音视频聊天"),
    ERROR_WX_RESP_NULL(10522,"【微信支付】 响应为null"),

    ;
    private Integer code;
    private String msg;

    CodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
